let gl = null;
let _canvas = null;
export function GLInit(canvas) {
    _canvas = canvas;
    gl = getWebGLContext(canvas);
    gl.enable(gl.BLEND);
    gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);
}

export function GLClear() {
    gl.clearColor(0.0, 0.0, 0.0, 1.0);
    gl.clear(gl.COLOR_BUFFER_BIT);
}

export function GetGL() {
    return gl;
}

export function CurCanvas() {
    return _canvas;
}